package com.nova.scenic.projectlibs.util.lifecyclehelper;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;

/**
 * Created by scenic on 16/5/30.
 */
public interface ActivityLifeCycleHelper  {
    void attachBaseContext(Context context);
    void onApplyThemeResource(Resources.Theme theme, int resid, boolean first);
    void onNewIntent(Intent intent);
    void onAttachedToWindow();
    void onDetachedFromWindow();
    View onCreateView(View parent, String name, Context context, AttributeSet attrs);
    boolean onGenericMotionEvent(MotionEvent event);
    void onTrimMemory(int level);
    boolean dispatchGenericMotionEvent(MotionEvent ev);
    boolean dispatchTouchEvent(MotionEvent ev);
    boolean dispatchKeyEvent(KeyEvent event);
    void onActivityFinish();
    void onRestart();
    boolean onCreateOptionsMenu(Menu menu);
    void onRestoreInstanceState(Bundle savedInstanceState);
}
